<style>
    .fadeSome {
        opacity:0.30;
        filter:alpha(opacity=30);
        -moz-opacity: 30%;
    }
    .fadeLots {
        opacity:0.50;
        filter:alpha(opacity=50);
        -moz-opacity: 0.5;
    }
    .fadeCompletely {
        opacity:0.0;
        filter:alpha(opacity=0);
        -moz-opacity: 0.0;
    }
</style>
<script language="javascript" >
function GetQueryValue( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}
function highlightDownloadArea(fOn) {
  document.getElementById("overlay").className = (fOn) ? "fadeSome" : "fadeLots";
}

// private method for UTF-8 decoding
function URLDecode(utftext) {
    var string = "";
    var i = 0;
    var c = c1 = c2 = 0;

    while (i < utftext.length) {

        c = utftext.charCodeAt(i);

        if (c < 128) {
            string += String.fromCharCode(c);
            i++;
        }
        else if ((c > 191) && (c < 224)) {
            c2 = utftext.charCodeAt(i + 1);
            string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
            i += 2;
        }
        else {
            c2 = utftext.charCodeAt(i + 1);
            c3 = utftext.charCodeAt(i + 2);
            string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
            i += 3;
        }

    }

    return string;
}

var mediaURL = GetQueryValue("mp");
mediaURL = mediaURL.replace(".wmv", ".ism");
mediaURL = URLDecode(unescape(mediaURL));

document.writeln('<div><object style="position: relative; z-index: 0;" data="data:application/x-silverlight," type="application/x-silverlight" width="100%" height="100%" >');
document.writeln('<param name="source" value="MoviePlayer.xap"/>');
document.writeln('<param name="onerror" value="onSilverlightError" />');
document.writeln('<param name="Windowless" value="true" />');
document.writeln('<param name="autoUpgrade" value="true" />');
document.writeln('<param name="minRuntimeVersion" value="3.0.40624.0" />');
document.writeln('<param name="enableHtmlAccess" value="true" />');
document.writeln('<param name="initparams" value=video='+mediaURL+'/Manifest />');
             document.writeln('<div onmouseover="highlightDownloadArea(true)" onmouseout="highlightDownloadArea(false)">');
                    document.writeln('<img src="" style="position:absolute;width:100%;height:100%;border-style:none;" onerror="this.style.display=\'none\'"/>');
                    document.writeln('<img src="/MediaPlayerSkins/Preview.png" style="position:absolute;width:100%;height:100%;border-style:none;" onerror="this.style.display=\'none\'"/>');
                    document.writeln('<div id="overlay" class="fadeLots" style="position:absolute;width:100%;height:100%;border-style:none;background-color:white;"/></div>');
                    document.writeln('<table width="100%" height="100%" style="position:absolute;"><tr><td align="center" valign="middle">');
                    document.writeln('<img src="http://go2.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight">');
                    document.writeln('</td></tr></table>');
                    document.writeln('<a href="http://go2.microsoft.com/fwlink/?LinkID=124807">');
                        document.writeln('<img src="/_layouts/images/blank.gif" class="fadeCompletely" style="position:absolute;width:100%;height:100%;border-style:none;" alt="Get Microsoft Silverlight"/>');
                    document.writeln('</a>');
             document.writeln('</div>');
        document.writeln('</object></div>');
</script>
